/*
 * Copyright (c) 2023, 2024,yzc.cn All rights reserved.
 *
 */
package cn.yzc.factory_pattern.method;

/**
 * <p>Project: springbootDemo - Test</p>
 * <p>Powered by yzc On 2024-03-20 10:36:19</p>
 * <p>描述：<p>
 *
 * @author yzc [youzhicheng0415@163.com]
 * @version 1.0
 * @since 17
 */
//测试类
public class Test {
    public static void main(String[] args) {
        CoffeeStore store = new CoffeeStore();
        AmericaFactory factory = new AmericaFactory();
        store.setCoffeeFactory(factory);
        Coffee coffee = store.orderCoffee();
        System.out.println(coffee.getName());
    }
}
